import { validatePhone } from "@/global/index";

export const rules = {
  name:[
    { required: true, message: '请输入名称', trigger: 'blur' }
  ],
  phone:[
    { required: true, message: '请输入联系方式', trigger: 'blur' },
    { validator: validatePhone, trigger: 'blur' }
  ],
  account:[
    { required: true, message: '请输入账号', trigger: 'blur' }
  ],
  password:[
    { required: true, message: '请输入密码', trigger: 'blur' }
  ],
  address:[
    { required: true, message: '请输入', trigger: 'blur' }
  ],
  money:[
    { required: true, message: '请输入', trigger: 'blur' }
  ],
  avator:[
    { required: true, message: '请上传', trigger: 'change' }
  ],
  roleId:[
    { required: true, message: '请选择', trigger: 'change' }
  ]
}

